﻿namespace CalculatorLibrary.ExpressionLibrary
{
    /// <summary>
    /// The sum calculation.
    /// </summary>
    public class SumCalculation : IExpression
    {
        #region Public Methods and Operators

        /// <summary>
        /// The calculata.
        /// </summary>
        /// <param name="leftPart">
        /// The left part.
        /// </param>
        /// <param name="rightPart">
        /// The right part.
        /// </param>
        /// <returns>
        /// The <see cref="decimal"/>.
        /// </returns>
        public decimal Calculate(decimal leftPart, decimal rightPart)
        {
            return leftPart + rightPart;
        }

        #endregion
    }
}